package com.cndw.kungfu.comm.tencent;

import java.util.HashMap;
import java.util.Map;

public class QQConstants {
	
	private static Map<String, Integer> domainMap = new HashMap<String, Integer>();
	
	/**
	 * 朋友网标志
	 */
	public static final String pengyou = "pengyou";
	/**
	 * 空间
	 */
	public static final String qzone = "qzone";
	/**
	 * q+
	 */
	public static final String qplus = "qplus";
	/**
	 * qqgame
	 */
	public static final String qqgame = "qqgame";
	/**
	 * 腾讯微博
	 */
	public static final String tapp = "tapp";
	/**
	 * 3366
	 */
	public static final String pf3366 = "3366";
	
	
	static{
		domainMap.put(qzone, 1);
		domainMap.put(pengyou, 2);
		domainMap.put(tapp, 3);
		domainMap.put(qplus, 4);		
		domainMap.put(qqgame, 10);	
		domainMap.put(pf3366, 11);
	}

	public static int getDomain(String pf){
		if (domainMap.containsKey(pf)) {
			return domainMap.get(pf);
		}
		return 2;
	}


	
}
